<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
  <title>首页--品优购全端项目</title>
  <link rel="stylesheet" href="/lib/mui/css/mui.css">
  <link rel="stylesheet" href="/lib/fontawesome/css/font-awesome.css">
  <link rel="stylesheet" href="/css/common.css">
  <link rel="stylesheet" href="/css/index.css">
</head>

<body class>
  <!-- 头部 -->
  <header class="pyg_header">
    <div class="mui-input-row mui-search">
      <input type="search" class="mui-input-clear" placeholder="">
    </div>
  </header>
  <div class="pyg_view">
    <!-- 首页轮播图 -->
    <div class="mui-slider">
      <!-- getSlider占坑 -->
    </div>
    <!-- 首页导航栏 -->
    <div class="index-nav">
      <!-- getCatitems占坑 -->
    </div>
    <!-- 商品列表 -->
    <div class="index-goodlist">
      <!-- getGoodslist占坑 -->
    </div>
  </div>
  <!-- 底部 -->
  <footer class="pyg_footer">
    <a href="/index.html">
      <span class="fa fa-home"></span>
      <span class="link-name">首页</span>
    </a>
    <a href="/pages/category.html">
        <span class="fa fa-list-ul"></span>
        <span class="link-name">分类</span>
    </a>
    <a href="/pages/cart.html">
        <span class="fa fa-shopping-cart"></span>
        <span class="link-name">购物车</span>
    </a>
    <a href="javascript:;">
        <span class="fa fa-user-circle-o"></span>
        <span class="link-name">首页</span>
    </a>
  </footer>
</body>
<script src="/lib/mui/js/mui.js"></script>
<script src="/lib/arttemplate/template-web.js"></script>
<script src="/lib/zepto/zepto.js"></script>
<script src="/js/common.js"></script>
<script src="/js/index.js"></script>

<script type="text/template" id="getSlider">
  <div class="mui-slider-group mui-slider-loop">
    <div class="mui-slider-item mui-slider-item-duplicate">
      <a href="#">
        <img src="{{data[data.length-1].image_src}}" />
      </a>
    </div>
    {{each data val}}
    <div class="mui-slider-item">
      <a href="#">
        <img src="{{val.image_src}}" />
      </a>
    </div>
    {{/each}}
    <div class="mui-slider-item mui-slider-item-duplicate">
      <a href="#">
        <img src="{{data[0].image_src}}" />
      </a>
    </div>
  </div>
  <div class="mui-slider-indicator">
    {{each data val index}} {{if index==0}}
    <div class="mui-indicator mui-active"></div>
    {{else if index!=0}}
    <div class="mui-indicator"></div>
    {{/if}} {{/each}}
  </div>
</script>

<script type="text/template" id="getCatitems">
  {{each data val}}
  <a href="javascript">
    <img src="{{val.image_src}}" alt="">
  </a>
  {{/each}}
</script>

<script type="text/template" id="getGoodslist">
  {{each data val}}
  <div class="goods-group">
    <div class="group-title">
      <img src="{{val.group_img}}">
    </div>
    <ul class="group-content">
      {{each val.goods val2}}
      <li>
        <a class="item-des" href="/pages/goods_detail.html?goods_id={{val2.goods_id}}">
          <div class="gg-img">
            <img src="{{val2.goods_small_logo}}">
          </div>
          <div class="gg-tit">{{val2.goods_name}}</div>
          <div class="gg-rmb">￥{{val2.goods_price}}</div>
        </a>
        <div class="gg-like">
          <a href="javascript:;" class="mui-btn mui-btn-primary mui-btn-outlined">找相似</a>
        </div>
      </li>
      {{/each}}
    </ul>
  </div>
  {{/each}}
</script>

</html>